import request from '@/utils/request'

export function saveCart(data) {
  return request({
    url: '/cart',
    method: 'post',
    data

  })
}

export function getCartList(userId) {
  return request({
    url: '/cart',
    method: 'get',
    params:{
      userId
    }

  })
}

export function deleteCart(params) {
  return request({
    url: '/cart',
    method: 'delete',
    params

  })
}

